package com.example.elasticsearchhepler.entity;

import com.example.elasticsearchhepler.annotations.ESDocument;
import com.example.elasticsearchhepler.annotations.ESField;
import com.example.elasticsearchhepler.entity.common.BaseEsEntity;
import com.example.elasticsearchhepler.enums.ESFieldType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
@ESDocument(indexName = "china_area_0606")
public class ChinaCityInfoModel extends BaseEsEntity implements Serializable {


    private static final long serialVersionUID = 4718572727844087866L;
    @ESField(name = "province",type = ESFieldType.Nested,childType = ProvinceInfoModel.class)
    private ProvinceInfoModel province;
}
